<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">

    <style>
        .form-control{margin-bottom: 8px;}
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .radio-inline {line-height: 5px;}
    </style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content" id="app" v-cloak>

        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form id="Form" autocomplete="off">
                    <div style="padding: 0">
                        <input type="hidden" name="id">
                        <input type="hidden" name="version" value="0">
                        <input type="hidden" v-if="type == 1" name="parentId" value="0">
                        <div class="form-group pid" v-if="type != 1">
                            <label class="col-sm-2 control-label">父级</label>
                            <div class="col-sm-10">
                                <select class="form-control" id="parentId" name="parentId">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" placeholder="请输入名称">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">类型</label>
                            <div class="col-sm-10">
                                <select class="form-control" name="type">
                                    <option value="1">商品</option>
                                    <option value="2">套餐</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否显示</label>
                            <div class="col-sm-10">
                                <select class="form-control" name="isShow">
                                    <option value="1">显示</option>
                                    <option value="0">不显示</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-10">
                                <input type="number" class="form-control" name="sort" value="100" placeholder="请输入排序">
                            </div>
                        </div>
                        <div class="form-group" style="margin-top: 10px">
                            <label class="form-inline">图片<font style="color: red">尺寸：【】</font></label>
                            <input id="articleImg" type="hidden" name="imgId">
                            <input type="hidden" id="oldImgId" name="oldImgId">
                            <div class="file-loading">
                                <input id="fileUploadBtn" type="file" name="file">
                            </div>
                        </div>
                    </div>

                    <div style="text-align: center">
                        <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                        <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)" >保存</button>
                        <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)" >保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
    <script src="../../../../js/business-manage/goods/goodsType/edit.js"></script>
</body>
</html>
